package com.company.queue;

public class QueueTest {
    // 队列，先进先出
    public static void main(String[] args) {
        QueueL queue = new QueueL();
        for (int i = 0; i < 10; i++) {
            //入队列
            queue.put(Integer.toString(i));
            System.out.println(queue);

        }

        while (!queue.isEmpty()) {
            //出 队列
            System.out.println(queue.get());
            System.out.println(queue);
        }
    }

}
